package com.i2863.watchdog.sms;

/**
 * 短信发送异常
 * Created by xuweiwei on 2017/4/17.
 */
public class SmsException extends RuntimeException {
    private SmsCodeType smsCodeType;
    public SmsException(SmsCodeType smsCodeType) {
        super();
        this.smsCodeType=smsCodeType;
    }

    public SmsException(SmsCodeType smsCodeType, String message) {
        super(message);
        this.smsCodeType=smsCodeType;
    }

    public SmsException(SmsCodeType smsCodeType, String message, Throwable cause) {
        super(message, cause);
        this.smsCodeType = smsCodeType;
    }

    public SmsException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public SmsException(SmsCodeType smsCodeType, Throwable cause) {
        super(cause);
        this.smsCodeType=smsCodeType;
    }

    public SmsCodeType getSmsCodeType() {
        return smsCodeType;
    }
}
